package com.ndp.fb.mongo.api;

import com.ndp.fb.mongo.model.AppRetention;

import java.util.Date;
import java.util.List;

/**
 * Created by jacky.cheng on 2015/10/9.
 */
public interface AppRetentionMongoService extends BaseMongoService {
    /**
     * 查找
     * @param day yyyy-MM-dd
     * @param appId appId
     * @param  type organic/facebook/fmp
     * @return o
     */
    AppRetention findOne(Date day, String appId,String type);

    /**
     * 查找前7天
     * @param day yyyy-MM-dd
     * @param appId appId
     * @param type organic/facebook/fmp
     * @return list
     */
    List<AppRetention> findPre7Day(Date day, String appId,String type);
}
